#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class Date
{
public:
	Date(int year = 1)
		:_year(year)
	{
		cout << "Date(int year)" << endl;
	}
	~Date()
	{
		cout << "~Date()" << endl;
	}
private:
	int _year;
};
int main()
{
	int* p1 = (int*)malloc(sizeof(int));
	delete p1;

	int* p2 = new int;
	free (p2);

	int* p3 = (int*) operator new(sizeof(int));
	operator delete (p3);


	return 0;
}